package org.learn.test;
import java.util.Scanner;

public class NestingExercise {
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        System.out.println("请输入该歌手成绩");
        double score = myScanner.nextDouble();

        if(score > 8.0){
            System.out.println("请输入性别");
            char gender = myScanner.next().charAt(0);
            if(gender ==  '男') {
                System.out.println("进入到男子组");
            }else if(gender ==  '女'){
                 System.out.println("进入到女子组");
            }else{
                System.out.println("你的性别有误，请输入男\t或者\t女");
            }
        }else{
            System.out.println("sorry ,你被淘汰了");
        }

    }
}
